import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css'
import './assets/js/jquery-2.1.0.min'
import $ from 'jquery'
Vue.use($);
import uploader from "vue-simple-uploader";
Vue.use(uploader);
// 导入iconfront
import './assets/font/iconfont.css';
import 'bootstrap/dist/css/bootstrap.min.css'
import VideoPlayer from 'vue-video-player'
import 'vue-video-player/src/custom-theme.css'
import 'video.js/dist/video-js.css'

Vue.use(VideoPlayer)

import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'

let options = {
  fullscreenEl: false,
}
Vue.use(preview, options)
Vue.use(preview)

// 导入axios
import axios from 'axios'
//导入mavon-editor

import mavonEidtor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
Vue.use(mavonEidtor)



// 挂载axios 到Vue的原型prototype的$http
Vue.prototype.$http = axios
// 设置请求的根路径
axios.defaults.baseURL = "http://localhost:9074/"
axios.defaults.withCredentials = true
axios.interceptors.request.use(config => {
  console.log(config);
  // 请求头挂载信息
  config.headers.Authorization = window.sessionStorage.getItem("flag");
  // 在最后必须return config
  return config;
})
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
